package com.weixing.mall.provider.model.dto.sys;

import com.weixing.mall.base.enums.IsEnableEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Author wx
 * @Date 2019/7/29 15:03
 * @Version 1.0
 */
@Data
public class SysDeptDto {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "部门名称")
    @NotNull(message = "部门名称不能为空")
    private String deptName;

    @ApiModelProperty(value = "部门负责人")
    @NotNull(message = "部门负责人不能为空")
    private String deptLeader;

    @ApiModelProperty(value = "部门职责")
    @NotNull(message = "部门职责不能为空")
    private String deptJob;

    @ApiModelProperty(value = "部门所在地")
    @NotNull(message = "部门所在地不能为空")
    private String deptLoc;

    @ApiModelProperty(value = "部门联系方式")
    @NotNull(message = "部门联系方式不能为空")
    private String deptTel;

    @ApiModelProperty(value = "是否可用")
    @NotNull(message = "是否可用不能为空")
    private IsEnableEnum isEnable;

    @ApiModelProperty(value = "父id")
    @NotNull(message = "父id不能为空")
    private Long parentId;

    @ApiModelProperty(value = "排序字段")
    @NotNull(message = "排序字段不能为空")
    private Integer orderBy;

    @ApiModelProperty(value = "路径")
    @NotNull(message = "请求参数不合法")
    private String deptPath;
}
